<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
<table id = "tableList"></table >
<script language="javascript" type="text/javascript " src="${ctxPath}/static/js/jquery.min.js "></script>
<script  type="text/javascript">
	$(function(){
		var tbody = "";
		$.ajax({
			type: "post",
			dataType: "json",
			url: "/orgClass/chooseInfoList" ,
			success: function (result) {
				if (null != result) {
					var obj = result;
					$.each(obj,function(n,value) {
						var trs = "";
						trs += "<tr><td><input type='checkbox' name='infos' value='"+value.id+"'></td><td>" + value.orgName+"</td></tr>";
						tbody += trs;
					});
					$("#tableList").append(tbody);
				}
			},
			error : function() {
				layer.msg("系统繁忙，请稍后再试");
			}
		});
	});
	//获取所有选中的checkbox
	function getCheckAdIds() {
		var adIds = "";
		$("input:checkbox[name='infos']:checked").each(function(i){
			if(0==i){
				adIds = $(this).val();
			}else{
				adIds += (","+$(this).val());
			}
		});
		return adIds;
	}
</script >
</body>
</html>
